Intersoft WebInput Documentation
How-to: Use display format events
See Also Send Feedback
Intersoft WebInput > Features and Concepts > Client Side Events > How-to: Use display format events

Glossary Item Box

WebInput.NET DisplayFormat has client side events model. Every client side event handler at least has 1 parameter (controlId).

In this topic, you will learn how to use DisplayFormat client side events in WebInput.

To use WebInput DisplayFormat events

  1. Drag WebInput instance to WebForm.
  2. Go to WebInput DisplayFormatClientSideEvents property.
  3. Add WebInput1_OnAfterValidate to OnAfterValidate event.
  4. Add WebInput1_OnBeforeValidate to OnBeforeValidate event.
  5. Add WebInput1_OnValidateError to OnValidateError event.
  6. In client side, add WebInput1_OnAfterValidate function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_OnAfterValidate(controlId)
    {
    alert("OnAfterValidate event is triggered");
    }

  7. In client side add WebInput1_OnBeforeValidate function and put some code in it.

    JavaScript Copy ImageCopy Code
    function WebInput1_OnBeforeValidate(controlId)
    {
    alert("OnBeforeValidate event is triggered");
    }

  8. In client side, add WebInput1_OnValidateError function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_OnValidateError(controlId)
    {
    alert("OnValidateError event is triggered");
    }

  9. Compile and run the Project.

See Also